How To Fit Patterns